﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using FinPlusInterfaces;
using FinPlusAssembler;

namespace FinPlusCompCore
{
    public class FinPlusReporter : FinPlusComponent
    {
        [State(Test = true)]
        public override bool IsValid { get; set; }
        [State(Test = true)]
        public override string TestString { get { return Adapter.ToString(); } }
        public override IPods Adapter { get { return _adapter; } }

        private readonly IPods _adapter;

        public FinPlusReporter()
        {
            _adapter = IOC.New<IPods>();
            _adapter.Add(IOC.New<IPod>("FinPlusReporter", "Open", IOC.New<IPod>()));
            IsValid = true;
        }
    }
}
